package ruifeng.zcj.dig.ui.assessment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;
import ruifeng.zcj.dig.R;
import ruifeng.zcj.dig.base.BaseBarFragment;
import ruifeng.zcj.dig.groble.FragmentArgs;
import ruifeng.zcj.dig.groble.ToActivityUtil;
import ruifeng.zcj.dig.ui.home.MainActivity2;
import ruifeng.zcj.dig.ui.people.PeopleDateActivity;
import ruifeng.zcj.mybase.base.App;
import ruifeng.zcj.mybase.base.BaseFragment;

/**
 * 评估
 * Created by Administrator on 2016/8/31 0031.
 */
public class AssessmentFragment extends BaseBarFragment {


    @Bind(R.id.activity_top_center)
    TextView mActivityTopCenter;
    @Bind(R.id.activity_top_right_text)
    TextView mActivityTopRightText;
    @Bind(R.id.color_name)
    TextView mColorName;
    @Bind(R.id.color)
    View mColor;
    @Bind(R.id.assessment_fragment_modle)
    TextView mAssessmentFragmentModle;
    @Bind(R.id.assessment_fragment_time)
    TextView mAssessmentFragmentTime;
    @Bind(R.id.assessment_fragment_address)
    TextView mAssessmentFragmentAddress;
    @Bind(R.id.assessment_fragment_hour)
    TextView mAssessmentFragmentHour;
    @Bind(R.id.yes1)
    RadioButton mYes1;
    @Bind(R.id.no1)
    RadioButton mNo1;
    @Bind(R.id.assessment_fragment_isimport)
    RadioGroup mAssessmentFragmentIsimport;
    @Bind(R.id.assessment_fragment_hammer_text)
    TextView mAssessmentFragmentHammerText;
    @Bind(R.id.yes)
    RadioButton mYes;
    @Bind(R.id.no)
    RadioButton mNo;
    @Bind(R.id.assessment_fragment_hammer)
    RadioGroup mAssessmentFragmentHammer;
    @Bind(R.id.email_sign_in_button)
    Button mEmailSignInButton;

    @Override
    protected void initFragmentConfig(View view) {
        mActivityTopCenter.setText("二手车评估");
        mColorName.setText("挖掘机");
        mColor.setBackgroundResource(R.drawable.yellow_h);

        super.initFragmentConfig(view);
    }

    @Override
    protected int getContentView() {
        return R.layout.fragment_assessment;
    }

    @Override
    protected void onFirstUserVisible() {

    }

    @Override
    protected void onUserVisible() {

    }

    @Override
    protected void onUserInvisible() {

    }

    @Override
    protected void cleanMemory() {

    }


    @OnClick({R.id.activity_top_right, R.id.assessment_fragment_modle, R.id.assessment_fragment_time, R.id.assessment_fragment_address, R.id.yes1, R.id.no1, R.id.assessment_fragment_isimport, R.id.yes, R.id.no, R.id.assessment_fragment_hammer, R.id.email_sign_in_button})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.activity_top_right:
                FragmentArgs fragmentArgs2 = new FragmentArgs();
                fragmentArgs2.add("logins", "logins");
                ToActivityUtil.toNextActivity(getContext(), PeopleDateActivity.class, "login", fragmentArgs2);
                break;
            case R.id.assessment_fragment_modle:
                break;
            case R.id.assessment_fragment_time:
                break;
            case R.id.assessment_fragment_address:
                break;
            case R.id.yes1:
                break;
            case R.id.no1:
                break;
            case R.id.assessment_fragment_isimport:
                break;
            case R.id.yes:
                break;
            case R.id.no:
                break;
            case R.id.assessment_fragment_hammer:
                break;
            case R.id.email_sign_in_button:
                break;
        }
    }
}
